<?php
namespace app\admin\controller\user;

use service\JsonService;

/**
 * 用户管理控制器
 * Class User
 * @package app\admin\controller\user
 */
class UserLevel extends \app\admin\controller\AuthController
{
    use \traits\ShotcutControllerTrait;
    public $model = '\app\common\model\UserLevel';

    public function _save ($data)
    {
        if ( isset($data['expire_type']) && $data['expire_type'] == 2 ) {
            if ( isset($data['expire_time']) && $data['expire_time'] ) {
                $data['expire_time'] = $data['expire_time'] . ' 23:59:59';
            }
        }
        return $data;
    }

}
